package com.huawei.hms.framework.network.restclient;

import com.huawei.hms.framework.network.restclient.hwhttp.Callback;
import com.huawei.hms.framework.network.restclient.hwhttp.Response;
import com.huawei.hms.framework.network.restclient.hwhttp.Submit;

class RealSubmit$1 implements Callback {
    final /* synthetic */ RealSubmit this$0;
    final /* synthetic */ ResultCallback val$responseCallback;

    RealSubmit$1(RealSubmit realSubmit, ResultCallback resultCallback) {
        this.this$0 = realSubmit;
        this.val$responseCallback = resultCallback;
    }

    public void onResponse(Submit submit, Response response) {
        try {
            this.val$responseCallback.onResponse(RealSubmit.access$000(this.this$0, response));
        } catch (Throwable e) {
            this.val$responseCallback.onFailure(e);
        }
    }

    public void onFailure(Submit submit, Throwable th) {
        this.val$responseCallback.onFailure(th);
    }
}
